<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script type="module">
    import Mustache from './lib/mustache.js'
        var template = `
    <ul>
        {{#arr}}
        <li>
            <div class="hd">{{name}}的信息</div>
            <div class="bd">
                <p>姓名：{{name}}</p>
                <p>性别：{{sex}}</p>
                <p>年龄：{{age}}</p>
            </div>
        </li>
        {{/arr}}
    </ul>`;
     // 生成dom结构字符串
   Mustache.render(template, {});

</script>

</html>